﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:Majesty_of_Omega.GUI.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    x:Class="Majesty_of_Omega.GUI.Pages.Game.Parts.EconomicPanelPart"
    Width="Auto"
    >
  <controls:Panel Title="Economics from Planet xxx">
    <StackPanel>
      
      <!-- Expander 1: Revenue -->      
      <Expander Header="Revenue" IsExpanded="True">
        <Grid Background="{DynamicResource PanelBackgroundBrush}">
          <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.563*"/>
            <ColumnDefinition Width="0.437*"/>
          </Grid.ColumnDefinitions>
          <StackPanel HorizontalAlignment="Stretch" Grid.Column="1" Margin="0,0,0,0">
            <Label Grid.ColumnSpan="2" Content="Tax Rate" FontWeight="Bold"/>
            <Grid Width="Auto" Height="74.7">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.548*"/>
                <ColumnDefinition Width="0.452*"/>
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
              </Grid.RowDefinitions>
              <TextBlock Grid.Row="0" Grid.Column="0" Text="Planetary" TextWrapping="Wrap" Style="{DynamicResource InputLabelStyle}" />
              <TextBlock Grid.Row="1" Grid.Column="0" Text="System" TextWrapping="Wrap" Style="{DynamicResource InputLabelStyle}" />
              <TextBlock Grid.Row="2" Grid.Column="0" Text="Sector" TextWrapping="Wrap" Style="{DynamicResource InputLabelStyle}" />
              <TextBlock Grid.Row="3" Grid.Column="0" Text="Imperial" TextWrapping="Wrap" Style="{DynamicResource InputLabelStyle}" />
              <controls:NumericTextBox Grid.Row="0" Grid.Column="1" />
              <controls:NumericTextBox Grid.Row="1" Grid.Column="1" />
              <controls:NumericTextBox Grid.Row="2" Grid.Column="1" />
              <controls:NumericTextBox Grid.Row="3" Grid.Column="1" />
            </Grid>
            <Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" VerticalAlignment="Bottom" Height="9" Data="M0,0 L100,0"/>
            <Label Width="155.746" Content="Balance" FontWeight="Bold"/>
            <Grid Width="Auto" Height="Auto" Margin="5,0,0,0">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.518*"/>
                <ColumnDefinition Width="0.482*"/>
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition Height="0.25*" />
                <RowDefinition Height="0.25*" />
                <RowDefinition Height="0.032*" />
                <RowDefinition Height="0.468*" />
              </Grid.RowDefinitions>
              <TextBlock Text="Income" Grid.Row="0" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock  Grid.Row="0" Style="{DynamicResource InfoValueStyle}" Grid.Column="1" Margin="0,0,0,18.68" VerticalAlignment="Stretch" Grid.RowSpan="2">
                <Run Language="de-de">15</Run>00 AU
              </TextBlock>
              <TextBlock Text="Expenses" Grid.Row="1" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="1100 AU"  Grid.Row="1" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <Path Fill="#FFFFFFFF" Grid.Row="2"  Stretch="Fill" Stroke="#FF000000" StrokeThickness="2" VerticalAlignment="Bottom" Height="9" Data="M0,0 L100,0" Grid.ColumnSpan="2"/>
              <TextBlock Text="Sum" Grid.Row="3" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="400 AU"  Grid.Row="3" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
            </Grid>
          </StackPanel>
          <StackPanel Margin="0,0,0,8">
            <Label Width="132.497" Content="Income" FontWeight="Bold"/>
            <Grid Width="122" Height="74.723" Margin="5,0,0,0">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.534*"/>
                <ColumnDefinition Width="0.466*"/>
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
              </Grid.RowDefinitions>
              <TextBlock Text="GDP Local" Grid.Row="0" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="13443 AU"  Grid.Row="0" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <TextBlock Text="Tax Income" Grid.Row="1" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="1000 AU"  Grid.Row="1" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <TextBlock Text="Total Trade" Grid.Row="2" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="500 AU"  Grid.Row="2" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <TextBlock Text="Grants" Grid.Row="3" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="0 AU"  Grid.Row="3" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
            </Grid>
            <Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" VerticalAlignment="Bottom" Height="9" Data="M0,0 L100,0"/>
            <Label Width="132.497" Content="Expenses" FontWeight="Bold"/>
            <Grid Width="122" Height="74.723" Margin="5,0,0,0">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.534*"/>
                <ColumnDefinition Width="0.466*"/>
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
              </Grid.RowDefinitions>
              <TextBlock Text="Production" Grid.Row="0" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="100 AU"  Grid.Row="0" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <TextBlock Text="Maintanance" Grid.Row="1" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="500 AU"  Grid.Row="1" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <TextBlock Text="Pollution" Grid.Row="2" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="500 AU"  Grid.Row="2" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
              <TextBlock Text="Gifts" Grid.Row="3" Style="{DynamicResource InputLabelStyle}" Grid.Column="0" />
              <TextBlock Text="0 AU"  Grid.Row="3" Style="{DynamicResource InfoValueStyle}" Grid.Column="1"/>
            </Grid>
          </StackPanel>
        </Grid>
      </Expander>
      
      <!-- Expander 2: Expenses -->
      <Expander Header="Expenses" IsExpanded="True">
        <StackPanel Background="{DynamicResource PanelBackgroundBrush}">
          <Label Height="24" Content="Build Queues" HorizontalAlignment="Stretch" FontWeight="Bold"/>
          <Grid Background="{DynamicResource PanelBackgroundBrush}" Margin="12,0,1,0">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="0.159*"/>
              <ColumnDefinition Width="0.288*"/>
              <ColumnDefinition Width="0.158*"/>
              <ColumnDefinition Width="0.113*"/>
              <ColumnDefinition Width="0.195*"/>
              <ColumnDefinition Width="0.087*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition />
              <RowDefinition />
              <RowDefinition />
              <RowDefinition />
              <RowDefinition />
              <RowDefinition />
            </Grid.RowDefinitions>

            <Slider VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch" />
            <TextBlock Text="Security" Margin="0,0,0,0" Style="{DynamicResource InfoValueStyle}" TextWrapping="Wrap" d:LayoutOverrides="HorizontalAlignment" HorizontalAlignment="Left" VerticalAlignment="Center" />
            <Image Source="pack://application:,,,/Graphics/Tech/Infantry_SM.png" Grid.Column="3" VerticalAlignment="Top" Margin="0,0,5.093,0" Width="26" Height="26"/>
            <TextBlock Text="30 AU" Grid.Column="2" Style="{DynamicResource InputLabelStyle}"  TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Style="{DynamicResource InputLabelStyle}"  VerticalAlignment="Center" Grid.Column="4" Text="4 turns" TextWrapping="Wrap" HorizontalAlignment="Center"/>
            <Button Grid.Column="5" Content="&gt;&gt;"/>

            <Slider Grid.Row="1" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch" />
            <TextBlock Grid.Row="1" Text="Eco" Margin="0,0,0,0" Style="{DynamicResource InfoValueStyle}" TextWrapping="Wrap" d:LayoutOverrides="HorizontalAlignment" HorizontalAlignment="Left" VerticalAlignment="Center" />
            <Image Grid.Row="1" Source="pack://application:,,,/Graphics/Tech/Infantry_SM.png" Grid.Column="3" VerticalAlignment="Top" Margin="0,0,5.093,0" Width="26"/>
            <TextBlock Grid.Row="1" Text="30 AU" Grid.Column="2" Style="{DynamicResource InputLabelStyle}"  TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Grid.Row="1" Style="{DynamicResource InputLabelStyle}"  VerticalAlignment="Center" Grid.Column="4" Text="4 turns" TextWrapping="Wrap" HorizontalAlignment="Center"/>
            <Button Grid.Row="1" Grid.Column="5" Content="&gt;&gt;"/>

            <Slider Grid.Row="2" VerticalAlignment="Top" Grid.Column="1" Grid.ColumnSpan="1" HorizontalAlignment="Stretch" />
            <TextBlock Grid.Row="2" Text="Social" Margin="0,0,0,0" Style="{DynamicResource InfoValueStyle}" TextWrapping="Wrap" d:LayoutOverrides="HorizontalAlignment" HorizontalAlignment="Left" VerticalAlignment="Center" />
            <Image Grid.Row="2" Source="pack://application:,,,/Graphics/Tech/Infantry_SM.png" Grid.Column="3" VerticalAlignment="Top" Margin="0,0,5.093,0" Width="26"/>
            <TextBlock Grid.Row="2" Text="30 AU" Grid.Column="2" Style="{DynamicResource InputLabelStyle}"  TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            <TextBlock Grid.Row="2" Style="{DynamicResource InputLabelStyle}"  VerticalAlignment="Center" Grid.Column="4" Text="4 turns" TextWrapping="Wrap" HorizontalAlignment="Center"/>
            <Button Grid.Row="2" Grid.Column="5" Content="&gt;&gt;"/>
          </Grid>

        </StackPanel>
      </Expander>
    </StackPanel>
  </controls:Panel>
</UserControl>
